<?php
$page_title="Manage Flash News";
include("includes/header.php");

$flash_id=$_GET["flash_id"];
$query = "SELECT * FROM bkitc_flash_news where flash_id=".$flash_id;
$mode=$_GET["mode"];


if($mode=="edit") 	$flash_info=@array_pop(qry_data("select * from bkitc_flash_news where flash_id=".$flash_id));
if($mode=="del"){
	exec_qry("update bkitc_flash_news set rec_status=0 where flash_id=".$flash_id);//Soft Delete
	header("location:flash_list.php");
}
?>				
<div class="fleft">
<ul class="subMenu">
<li><a href="edit_flash.php?mode=add">Add New </a></li>
<li><a href="flash_list.php?mode=result">Back to Flash List </a></li>
</ul>
</div>
<div class="cleardiv"></div>
	<div style="width:100%" class="content_bg">
	<form method="post" action="edit_flash_pro.php?flash_id=<?=$_GET["flash_id"]?>" > 
		<table class="voip_form" width="600"  cellpadding="8" border="0" cellspacing="3"> 
			<tr>
				<td  height="10" style="padding:2px;margin:2px" colspan="2" align="right"><small style="font-size:11px"> <i><?=ast()?>  Required fields.</i></small></td>
			</tr>
		
			
			
			
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Content <?=ast()?><br/><br/>
				 <textarea class="txtarea"  id="flash_text" rows="4" cols="90" name="flash_text" style="width:800px;height:100px;"><?=$flash_info["flash_text"]?></textarea> </td>
			</tr>
			
			
	
			<tr bgcolor="#fff" style="height:50px;margin:0px;padding:0px;">
				
				<td  style="margin:0px;padding:2px;" align="right" colspan="2">
				<input type="submit" class="button"  value="Save Info">&nbsp;
				<input class="button" type="reset">
				<input onclick="location.href='flash_list.php'"  type="button" class="button" value=" Back to Flash List">
				</td>
			</tr>
			
		</table>
	</form>
</div>

<div style="margin-bottom:40px">

</div>
<link rel="stylesheet" href="includes/wysiwyg.css" type="text/css">
<script type="text/javascript" src="includes/scripts/wysiwyg.js"></script>
<script type="text/javascript" src="includes/scripts/wysiwyg-settings.js"></script>
		<!-- 
			Attach the editor on the textareas
		-->
		<script type="text/javascript">
			
			// Use it to attach the editor directly to a defined textarea
			WYSIWYG.attach('flash_text'); // default setup
			
		</script>

<? include("includes/footer.php");?>
